<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>事件处理</title>
    </head>
    <body>
        <div id="app">
            <button v-on:click="counter += 1">Add 1</button>
            <p>The button above has been clicked {{ counter }} times.</p>
        </div>

        <script type="module">
            import Vue from '../vue.esm.browser.js'
        
            const app = new Vue({
                el: '#app',
                data: {
                    counter: 1
                }
            })
        </script>
    </body>
</html>